package com.graphsql.gamesdk.activity;

import java.util.Map;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;

import com.graphsql.gamesdk.Graphsql;
import com.graphsql.gamesdk.callback.LoginCallback;
import com.graphsql.gamesdk.util.ResourceUtil;



public class DemoActivity extends Activity {
	 @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
//	        this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
//	                WindowManager.LayoutParams.FLAG_FULLSCREEN);
	        setContentView(ResourceUtil.getLayoutId(DemoActivity.this, "gs_demolayout"));
	        Button btn_login = (Button)this.findViewById(ResourceUtil.getId(DemoActivity.this, "gs_btn_login"));
	        btn_login.setOnClickListener(new View.OnClickListener() {
				@Override
				public void onClick(View v) {
//					view_demo.setVisibility(View.INVISIBLE);
					Graphsql.gs_loginView(DemoActivity.this, new LoginCallback(){

						@Override
						public void callback(int code, String message,
								Map<String, String> data) {
							// TODO Auto-generated method stub
							
						}
						
					});
				}
			});
	 }
}